#!/bin/bash
cur_dir=`pwd`
docker stop micro-mysql
docker rm micro-mysql
docker run -p 3316:3306 --name micro-mysql -v ${cur_dir}/conf:/etc/mysql/conf.d -v ${cur_dir}/data:/var/lib/mysql -v ${cur_dir}/logs:/logs -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7